<!DOCTYPE html>
<html lang="en">
  <head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="./vue2.js"></script>
    <script src="./axios.js"></script>
  </head>
  <body>
    <div id="app"></div>
    <script>
      var vm = new Vue({
        el: '#app',
        data: {

        },
        mounted () {
          axios.post('http://157.122.54.189:9093/api/addproduct', {
            name: '哈哈哈'
          })
            .then(res => {
              console.log(res.data);
            })
            .catch(error => {
              console.log(error);
            })
        }
      })
    </script>
  </body>
</html>